package com.ctshk.rpc.order.goods.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品订单收款明细-DTO参数
 * </p>
 *
 * @author 姜斌文
 * @since 2021-04-26
 */
@Data
@ApiModel(value = "OrderCommodityCollectionDTO对象", description = "商品订单收款明细")
public class OrderCommodityCollectionDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品订单收款明细ID")
    private Long id;

    @ApiModelProperty(value = "收款单号")
    private String collectionNumber;

    @ApiModelProperty(value = "所属订单")
    private Long orderId;

    @ApiModelProperty(value = "本位币金额（HKD）")
    private BigDecimal standardAmount;

    @NotNull(message = "收款金额不能为空")
    @ApiModelProperty(value = "收款金额")
    private BigDecimal collectionAmount;

    @NotNull(message = "收款币种ID不能为空")
    @ApiModelProperty(value = "收款币种ID")
    private Long currencyId;

    @ApiModelProperty(value = "兑换率")
    private Double exchangeRate;

    @NotBlank(message = "收款币种不能为空")
    @ApiModelProperty(value = "收款币种")
    private String currency;

    @NotNull(message = "收款方式ID不能为空")
    @ApiModelProperty(value = "收款方式ID")
    private Long collectionWayId;

    @NotNull(message = "收款方式不能为空")
    @ApiModelProperty(value = "收款方式")
    private String collectionWay;

    @ApiModelProperty(value = "付款方")
    private String payer;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "销售ID")
    private Long salerId;

    @ApiModelProperty(value = "销售姓名")
    private String salerName;

    @ApiModelProperty(value = "驳回信息")
    private String rejectInfo;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime gmtCreate;
}
